﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<InternshipManagement.Models.Document>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% 
        
        ViewBag.DocumentOp = 0;
        Html.RenderPartial("DocumentMenu"); 
    %>
<table class="list">
<%
            bool odd = false;
            foreach (var item in Model)
            {
                odd = !odd;
        %>
        <tr class='<%=odd?"odd":"even" %>'>
        <td>
            <a href="<%=item.Path%>"><%=item.Name%></a>
        </td>
        <td style="width:120px">
            <%: String.Format("{0:g}", item.UpdateDate) %>
        </td>
    </tr>  
<% } %>

</table>

</asp:Content>

